package com.ruoyi.images.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.images.mapper.ApartmentImagesMapper;
import com.ruoyi.images.domain.ApartmentImages;
import com.ruoyi.images.service.IApartmentImagesService;

/**
 * 公寓图片管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-10
 */
@Service
public class ApartmentImagesServiceImpl implements IApartmentImagesService 
{
    @Autowired
    private ApartmentImagesMapper apartmentImagesMapper;

    /**
     * 查询公寓图片管理
     * 
     * @param imageId 公寓图片管理主键
     * @return 公寓图片管理
     */
    @Override
    public ApartmentImages selectApartmentImagesByImageId(Long imageId)
    {
        return apartmentImagesMapper.selectApartmentImagesByImageId(imageId);
    }

    /**
     * 查询公寓图片管理列表
     * 
     * @param apartmentImages 公寓图片管理
     * @return 公寓图片管理
     */
    @Override
    public List<ApartmentImages> selectApartmentImagesList(ApartmentImages apartmentImages)
    {
        return apartmentImagesMapper.selectApartmentImagesList(apartmentImages);
    }

    /**
     * 新增公寓图片管理
     * 
     * @param apartmentImages 公寓图片管理
     * @return 结果
     */
    @Override
    public int insertApartmentImages(ApartmentImages apartmentImages)
    {
        return apartmentImagesMapper.insertApartmentImages(apartmentImages);
    }

    /**
     * 修改公寓图片管理
     * 
     * @param apartmentImages 公寓图片管理
     * @return 结果
     */
    @Override
    public int updateApartmentImages(ApartmentImages apartmentImages)
    {
        return apartmentImagesMapper.updateApartmentImages(apartmentImages);
    }

    /**
     * 批量删除公寓图片管理
     * 
     * @param imageIds 需要删除的公寓图片管理主键
     * @return 结果
     */
    @Override
    public int deleteApartmentImagesByImageIds(Long[] imageIds)
    {
        return apartmentImagesMapper.deleteApartmentImagesByImageIds(imageIds);
    }

    /**
     * 删除公寓图片管理信息
     * 
     * @param imageId 公寓图片管理主键
     * @return 结果
     */
    @Override
    public int deleteApartmentImagesByImageId(Long imageId)
    {
        return apartmentImagesMapper.deleteApartmentImagesByImageId(imageId);
    }
}
